/*
 * @Author: zwc 6537397+uni-yunApp@user.noreply.gitee.com
 * @Date: 2021-02-22 18:19:38
 * @LastEditors: zwc 6537397+uni-yunApp@user.noreply.gitee.com
 * @LastEditTime: 2023-04-13 17:49:13
 * @FilePath: \ant-design-vue-admin-master\src\router\router.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { UserLayout, BasicLayout, BlankLayout, RouteView } from '@/layouts'
export const otherRouterMap = [
  {
    path: '*', redirect: '/404', hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    name: 'index',
    component: UserLayout,
    redirect: {
      path: '/dashboad'
    },
    hidden: true,
    children: [
      {
        path: '/noPermission',
        name: 'noPermission',
        hidden: true,
        component: () => import('@/views/exception/noPermission'),
        meta: {
          title: '权限错误'
        }
      }
    ]
  },
  {
    path: '/404',
    name: '404',
    hidden: true,
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]
